<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\DB;

class TRealdataLightintensity extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('t_realdata_LightIntensity', function (Blueprint $table) {
             $table->engine = 'MEMORY';
             $table->charset = 'utf8';
             $table->collation = 'utf8_general_ci';
            // CONTENT
            $table->datetime('rd_updatetime')->nullable(false)->comment('');
			$table->unsignedInteger('pdi_index')->nullable(false)->default(0)->comment('');
			$table->float('rd_LightIntensity1', 9, 2)->nullable()->default(0)->comment('');
			$table->float('rd_LightIntensity2', 9, 2)->nullable()->default(0)->comment('');
			$table->float('rd_LightIntensity3', 9, 2)->nullable()->default(0)->comment('');
			$table->float('rd_LightIntensity4', 9, 2)->nullable()->default(0)->comment('');
			$table->float('rd_LightIntensity5', 9, 2)->nullable()->default(0)->comment('');
			$table->float('rd_LightIntensity6', 9, 2)->nullable()->default(0)->comment('');
			$table->float('rd_LightIntensity7', 9, 2)->nullable()->default(0)->comment('');
			$table->float('rd_LightIntensity8', 9, 2)->nullable()->default(0)->comment('');
			$table->float('rd_LightIntensity9', 9, 2)->nullable()->default(0)->comment('');
			$table->float('rd_LightIntensity10', 9, 2)->nullable()->default(0)->comment('');
			$table->float('rd_LightIntensity_num', 9, 2)->nullable()->default(0)->comment('');
			$table->boolean('rd_LightIntensity1hwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_LightIntensity2hwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_LightIntensity3hwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_LightIntensity4hwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_LightIntensity5hwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_LightIntensity6hwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_LightIntensity7hwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_LightIntensity8hwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_LightIntensity9hwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_LightIntensity10hwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_LightIntensity1lwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_LightIntensity2lwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_LightIntensity3lwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_LightIntensity4lwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_LightIntensity5lwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_LightIntensity6lwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_LightIntensity7lwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_LightIntensity8lwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_LightIntensity9lwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_LightIntensity10lwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_LightIntensity1consta')->nullable()->default(0)->comment('');
			$table->boolean('rd_LightIntensity2consta')->nullable()->default(0)->comment('');
			$table->boolean('rd_LightIntensity3consta')->nullable()->default(0)->comment('');
			$table->boolean('rd_LightIntensity4consta')->nullable()->default(0)->comment('');
			$table->boolean('rd_LightIntensity5consta')->nullable()->default(0)->comment('');
			$table->boolean('rd_LightIntensity6consta')->nullable()->default(0)->comment('');
			$table->boolean('rd_LightIntensity7consta')->nullable()->default(0)->comment('');
			$table->boolean('rd_LightIntensity8consta')->nullable()->default(0)->comment('');
			$table->boolean('rd_LightIntensity9consta')->nullable()->default(0)->comment('');
			$table->boolean('rd_LightIntensity10consta')->nullable()->default(0)->comment('');
			$table->boolean('rd_NetCom')->nullable()->default(0)->comment('');
			$table->primary('rd_updatetime');
			$table->unique('pdi_index', 'pdi_index');
			
        });

        
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('t_realdata_LightIntensity');
    }
}
